<?php

namespace App\Model\Aboot;

use Illuminate\Database\Eloquent\Model;

class Wishlist extends Model
{
    protected $fillable = ['user_id','product_id'];

    public function product()
    {
        return $this->belongsTo('App\Model\Admin\Product', 'product_id', 'pro_code');
    }

    public function user()
    {
        return $this->belongsTo('App\User');
    }
}
